<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {$LOAD_STYLE.top|raw}
</head>
<body>
<form class="layui-form" action="">
    <div class="mainBox">
        <div class="main-container">
            
    		<div class="layui-form-item">
    			<label class="layui-form-label">染厂ID</label>
    			<div class="layui-input-block">
    			  <div id="dye_id_search"></div>
                  <input name="dye_id" type="hidden" value="{$model.dye_id??''}"/>
    			</div>
    		</div>

    		<div class="layui-form-item">
    			<label class="layui-form-label">染厂名称</label>
    			<div class="layui-input-block">
    			  <div id="dye_name_search"></div>
                  <input name="dye_name" type="hidden" value="{$model.dye_name??''}"/>
    			</div>
    		</div>

			<div class="layui-form-item">
				<label class="layui-form-label">产品ID</label>
				<div class="layui-input-block">
				  <input type="text" name="cloth_id" value="{$model.cloth_id??''}" placeholder="请输入产品ID" class="layui-input"  verify="must">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">产品名称</label>
				<div class="layui-input-block">
				  <input type="text" name="cloth_name" value="{$model.cloth_name??''}" placeholder="请输入产品名称" class="layui-input"  verify="must">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">工艺内容</label>
				<div class="layui-input-block">
				  <input type="text" name="content" value="{$model.content??''}" placeholder="请输入工艺内容" class="layui-input"  verify="must">
				</div>
			</div>

        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="button" class="pear-btn pear-btn-primary pear-btn-sm" lay-submit="" lay-filter="save" verify="submit">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</form>
<script>
	layui.use(['form', 'jquery', 'uploads','common','mycomm','table'], function () {
		let form = layui.form;
		let $ = layui.jquery;
		let common = layui.common;
		let mycomm = layui.mycomm;
		let table = layui.table;
		
		mycomm.editSubmit();
		
		mycomm.selectInput("dye_id", "{:U('embryo.Cloth/index')}","{$model.dye_id??''}");
        mycomm.selectInput("dye_name", "{:U('')}","{$model.dye_name??''}");
        
	})
</script>
{$LOAD_STYLE.bottom|raw}

</body>
</html>